package com.ebelter.bodyfatscale.moudules.db.beans;

import com.ebelter.bodyfatscale.moudules.db.AppDatabase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;

import java.io.Serializable;

@Table(database = AppDatabase.class)
public class UsersData extends BaseModel implements Serializable {

    @PrimaryKey(autoincrement = true)//ID自增
    public long id;

    /*用户标识id，必须保证唯一性*/
    @Column
    public long userID;


    @Column
    public String name;

    @Column
    public String psw;

    @Column
    public int height;

    @Column
    public float weight;

    @Column
    public float targetWeight;

    @Column
    public String birthday;

    @Column
    public int sex;//0男1女

    @Column
    public int profession;//0普通1运动员

    @Column
    public float impedance;//阻抗

}
